import axios from '@/libs/axios'

//获取路由列表
export const menuRoutes = params => { return axios.get('api/system/menuRoutes', params).then(res => res.data)};
//获取菜单树
export const menuTree = params => { return axios.get('api/system/menuTree', params).then(res => res.data)};
//保存树节点信息
export const saveMenuNode = params => { return axios.post('api/system/saveMenuNode', params).then(res => res.data) };
//新增节点
export const addMenuNode = params => { return axios.post('api/system/addMenuNode', params).then(res => res.data) };
//删除节点
export const delMenuNode = params => { return axios.post('api/system/delMenuNode', params).then(res => res.data) };
